<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>
  <div class="portlet-content">
<% form_for(@people) do |f| %>
  <%= f.error_messages %>

          <table>
            <tbody>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.people.first_name') %>
                </td>
                <td>
                  <%= f.text_field :first_name %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.people.last_name') %>
                </td>
                <td>
                  <%= f.text_field :last_name %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.people.cbox') %>
                </td>
                <td>
                  <%= f.text_field :cbox %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.people.discount') %>
                </td>
                <td>
                  <%= f.text_field :discount %>
                </td>
              </tr>

              <tr>
                <td>
                  <%= label_tag :treatment, t('activerecord.attributes.people.treatment') %>
                </td>
                <td>
                  <%= collection_select(:people, :treatment_id, @treatments, :id, :description, :prompt =>true) %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= label_tag :regard, t('activerecord.attributes.people.regard') %><br />
                </td>
                <td>
                  <%= collection_select(:people, :regard_id, @regards, :id, :description, :prompt =>true) %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= label_tag :currency, t('activerecord.attributes.people.currency') %><br />
                </td>
                <td>
                  <%= collection_select(:people, :currency_id, @currencies, :id, :name, :prompt =>true) %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.customer.postal_code') %>
                </td>
                <td>
                  <%= f.text_field :postal_code %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.customer.email') %>
                </td>
                <td>
                  <%= f.text_field :email %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.customer.phone') %>
                </td>
                <td>
                  <%= f.text_field :phone %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.customer.url') %>
                </td>
                <td>
                  <%= f.text_field :url %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.customer.commercial_adress') %>
                </td>
                <td>
                  <%= f.text_field :commercial_adress %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= f.label t('activerecord.attributes.customer.postal_adress') %>
                </td>
                <td>
                  <%= f.text_field :postal_adress %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= label_tag :city, t('activerecord.attributes.customer.city') %>
                </td>
                <td>
                  <%= collection_select(:people, "city_id", @cities, :id, :name, :prompt =>true) %>
                </td>
              </tr>
            </tbody>
          </table>
    <%= f.submit t('btn_create') %>
<% end %>
  </div>
  <div class="portlet-footer">
<%= link_to t('btn_back'), peoples_path %>  </div>
</div>
